package com.ch999.detect.mode.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2016/12/15 0015.
 */

public class GoodsBjgz implements Serializable{

    /**
     * attr : [{"ismul":"0","tpname":"拆修历史","values":[{"name":"无拆无修","value":"-7%"},{"name":"小拆修","value":"-9%"},{"name":"主板维修/严重拆修","value":"-12%"}]},{"ismul":"0","tpname":"是否进水","values":[{"name":"没有进过水","value":"-7%"},{"name":"有过进水","value":"-10%"}]},{"ismul":"0","tpname":"外观成色","values":[{"name":"外观完好","value":"-7%"},{"name":"磕碰掉漆","value":"-9%"},{"name":"机身微弯曲/磕伤严重","value":"-10%"},{"name":"主板变形/零件脱落","value":"-12%"}]},{"ismul":"0","tpname":"开机情况","values":[{"name":"开机正常","value":"-6%"},{"name":"开机不正常","value":"-18%"}]},{"ismul":"0","tpname":"屏幕显示","values":[{"name":"显示正常","value":"-7%"},{"name":"屏幕漏光/老化","value":"-10%"},{"name":"显示严重异常/不显","value":"-13%"}]},{"ismul":"0","tpname":"屏幕外观","values":[{"name":"屏幕完好","value":"-7%"},{"name":"屏幕划痕/分层/翘起 ","value":"-9%"},{"name":"屏幕破损","value":"-11%"}]},{"ismul":"0","tpname":"触摸功能","values":[{"name":"触摸正常","value":"-7%"},{"name":"触摸不正常","value":"-10%"}]},{"ismul":"0","tpname":"无线功能","values":[{"name":"无线正常","value":"-7%"},{"name":"无线不正常","value":"-8%"}]},{"ismul":"0","tpname":"摄像功能","values":[{"name":"摄像正常","value":"-7%"},{"name":"摄像不正常","value":"-8%"}]},{"ismul":"0","tpname":"通话功能","values":[{"name":"通话正常","value":"-7%"},{"name":"通话不正常","value":"-10%"}]},{"ismul":"0","tpname":"充电功能","values":[{"name":"充电正常","value":"-7%"},{"name":"充电不正常","value":"-8%"}]},{"ismul":"0","tpname":"按键功能","values":[{"name":"按键正常","value":"-6%"},{"name":"按键不正常","value":"-8%"}]},{"ismul":"0","tpname":"颜色","values":[{"name":"白色行货","value":"-2%"},{"name":"黑色行货","value":"-2%"}]},{"ismul":"0","tpname":"存储容量","values":[{"name":"16G","value":"-1%"},{"name":"32G","value":"-1%"}]}]
     * bjgz : 77
     * pid : 17313
     */

    private String bjgz;
    private int pid;


    private List<AttrBean> attr;

    public String getBjgz() {
        return bjgz;
    }

    public void setBjgz(String bjgz) {
        this.bjgz = bjgz;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public List<AttrBean> getAttr() {
        return attr;
    }

    public void setAttr(List<AttrBean> attr) {
        this.attr = attr;
    }

    public static class AttrBean implements Serializable {
        /**
         * ismul : 0
         * tpname : 拆修历史
         * values : [{"name":"无拆无修","value":"-7%"},{"name":"小拆修","value":"-9%"},{"name":"主板维修/严重拆修","value":"-12%"}]
         */

        private String ismul;
        private String tpname;
        private String params;
        private int itemPosation = -1; //默认未检测
        private boolean isCheckBox;

        private String icon;//检测项图标
        /**
         * name : 没有进过水
         * value : 0
         * isSelected : false
         * pic :
         * miaoshu : 防水标签为正常颜色，其余部件也无氧化现象。
         */

        private String name;
        private String value;
        private boolean isSelected;
        private String pic;
        private String miaoshu;

        public String getIcon() {
            return icon;
        }

        public void setIcon(String icon) {
            this.icon = icon;
        }

        public boolean isCheckBox() {
            return isCheckBox;
        }

        public void setCheckBox(boolean checkBox) {
            isCheckBox = checkBox;
        }

        public boolean isDetect() {
            return isDetect;
        }

        public void setDetect(boolean detect) {
            isDetect = detect;
        }

        private boolean isDetect;

        private List<ValuesBean> values;

        public String getIsmul() {
            return ismul;
        }

        public void setIsmul(String ismul) {
            this.ismul = ismul;
        }

        public String getTpname() {
            return tpname;
        }

        public void setTpname(String tpname) {
            this.tpname = tpname;
        }

        public List<ValuesBean> getValues() {
            return values;
        }

        public void setValues(List<ValuesBean> values) {
            this.values = values;
        }

        public String getParams() {
            return params;
        }

        public void setParams(String params) {
            this.params = params;
        }

        public int getItemPosation() {
            return itemPosation;
        }

        public void setItemPosation(int itemPosation) {
            this.itemPosation = itemPosation;

            ValuesBean valuesBean = values.get(itemPosation);

            this.params = valuesBean.getName() + "|"
                    + valuesBean.getValue() + "|" + this.tpname;


        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        public boolean isIsSelected() {
            return isSelected;
        }

        public void setIsSelected(boolean isSelected) {
            this.isSelected = isSelected;
        }

        public String getPic() {
            return pic;
        }

        public void setPic(String pic) {
            this.pic = pic;
        }

        public String getMiaoshu() {
            return miaoshu;
        }

        public void setMiaoshu(String miaoshu) {
            this.miaoshu = miaoshu;
        }

        public static class ValuesBean implements Serializable {
            /**
             * name : 无拆无修
             * value : -7%
             */

            private String name;
            private String value;
            /**
             * isSelected : false
             * pic :
             * miaoshu : 防水标签为正常颜色，其余部件也无氧化现象。
             */

            private boolean isSelected;
            private String pic;
            private String miaoshu;


            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getValue() {
                return value;
            }

            public void setValue(String value) {
                this.value = value;
            }

            public boolean isIsSelected() {
                return isSelected;
            }

            public void setIsSelected(boolean isSelected) {
                this.isSelected = isSelected;
            }

            public String getPic() {
                return pic;
            }

            public void setPic(String pic) {
                this.pic = pic;
            }

            public String getMiaoshu() {
                return miaoshu;
            }

            public void setMiaoshu(String miaoshu) {
                this.miaoshu = miaoshu;
            }
        }


    }
}
